package com.ubing.gxspringboot.gxaop;

import com.ubing.gxspringboot.gxannotation.GXAround;
import com.ubing.gxspringboot.gxannotation.GXAspect;
import com.ubing.gxspringboot.gxannotation.GXComponent;
import com.ubing.gxspringboot.gxannotation.GXPointcut;
import com.ubing.gxspringboot.gxproxy.JoinPoint;


@GXComponent
@GXAspect
public class RequestAspect {
    @GXPointcut("com.ubing.gxspringboot.gxservice.gxserviceimpl")
    public void requestAspect() {
    }


    @GXAround("requestAspect()")
    public Object requestPointCut(JoinPoint joinPoint) throws Throwable {
        System.out.println("开始");

        Object process = joinPoint.process();

        System.out.println("结束");
        return process;
    }

}
